/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package InterfaceGUI;

import java.util.Calendar;
import java.util.Date;
import javax.swing.table.AbstractTableModel;

import java.util.Scanner;

public class testkalenderGUI {

    public static void main(String[] args) {
        testkalenderGUI gui = new testkalenderGUI();
//        gui.testkalenderGUI();
    }


    private static int year;

    private static String[] months = { "January", "February", "March", "April", "May", "June", "July",
                                       "August", "September", "October", "November", "December" };

    private static int[] totalDays = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };

<<<<<<< .mine
    public static int getYear()
        {
            Scanner sc = new Scanner(System.in);
            System.out.println("Enter a year: ");
            int year = sc.nextInt();
            return year;
        }
=======
  /** Creates a new {@code YearCalendarTableModel}. */
  public void testkalenderGUI() {
    setCalendar(Calendar.getInstance());
  }
>>>>>>> .r89

    public boolean isLeap ()
        {
            if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
            {
                totalDays[1] = 29;
                return true;
                }
            return false;
        }

    public static void printCalendar(int count)
        {
            for (int i = 0; i < 12; i++) {
                count = i;
                System.out.println(months[count] + " " + year);
                System.out.println("-----------------------------");
                System.out.println(" Su Mo Tu We Th Fr Sa");
                }
        }
}